<?php
class Form_Form extends Zend_Form 
{ 
    public function __construct($pac) 
    {
    	
    	parent::__construct();
        $this->setMethod('post'); 
		$this->setAction("/index.php/paciente/mod-pacientes"); 
		$this->setAttrib('onsubmit',"return confirm('¿Está seguro que quiere Modificar/Borrar el Paciente?')");
        
        $mod = new Zend_Form_Element_Submit( 'Modificar' ); 
        $mod->setLabel( 'Modificar' );
        //$mod->setName( 'task' );
        $mod->setValue( 'Modificar' ); 
        
        $del = new Zend_Form_Element_Submit( 'Borrar' ); 
        $del->setLabel( 'Borrar' );
        //$del->setName( 'task' );
        $del->setValue( 'Borrar' ); 
        
        $dni = new Zend_Form_Element_Hidden($pac);
        $dni->setName( 'paciente' );
        $dni->setValue( $pac );
 
        $this->addElements( array( $mod, $del,$dni ) ); 
 
        return $this;
    
    }
}